import { _decorator, Component, Node } from 'cc';
import { gtPlayable } from './GtPlayable';
const { ccclass, property } = _decorator;

@ccclass('Download')
export class Download extends Component {
    protected onEnable(): void {
        this.node.on(Node.EventType.TOUCH_START, this.download, this);
    }

    protected onDisable(): void {
        this.node.off(Node.EventType.TOUCH_START, this.download, this);
    }

    update(deltaTime: number) {
        
    }

    download(){
        gtPlayable.install()
    }
}


